import request from '@/utils/request';

// 获取前台值班信息

export function receptionDuty() {
    return request({
        url: '/drug/reception/receptionDuty',
        method: 'get'
    })
}

// 获取所有新闻数据

export function reqGetNewList(data) {
    return request({
        url: '/drug/reception/navigationChart',
        method: 'get',
        params: data
    })
}

// 根据id获取文章信息

export function isNewsPrivacy(data) {
    return request({
        url: '/drug/reception/isNewsPrivacy',
        method: 'post',
        params: data
    })
}

// 获取栏目导航栏信息
export function reqNavigation() {
    return request({
        url: '/drug/reception/navigation',
        method: 'get'
    })
}

// 根据栏目id获取新闻信息
export function newsByColumnId(data) {
    return request({
        url: '/drug/reception/newsByColumnId',
        method: 'get',
        params: data
    })
}

// 分页模糊查询前台通知通告信息
export function reqGetInForm(data) {
    return request({
        url: '/drug/reception/getInform',
        method: 'get',
        params: data
    })
}

// 根据通告id查询签收信息   
export function reqGetSign(data) {
    return request({
        url: '/drug/reception/sign',
        method: 'get',
        params: data
    })
}

// 更改签收状态
export function changeSignState(data) {
    return request({
        url: '/drug/reception/changeSignState',
        method: 'put',
        params: data
    })
}